<div class="content noPad clearfix">
    <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
        <thead>
            <tr>
                <th>
                    <span>ID</span>
                </th>
                <th>
                    <span>Họ & tên</span>
                </th>
                <th>
                    <span>Email</span>
                </th>
                <th>
                    <span>Địa chỉ (GH)</span>
                </th>
                <th>
                  	<span>Tình trạng</span>
                </th>
                <th>
                    <span>Sản phẩm</span>
                </th>
                <th>
                	<span>PTTT</span>
                </th>
                <th>
                	<span>Tạo lúc</span>
                </th>
                <th>
                    <span>Thao tác</span>
                </th>
            </tr>
        </thead>
        <tbody>
        <?php foreach ($orders as $order): ?>
            <tr>
                <td style='text-align:center;'><?php echo $order['order_id'] ?></td>
                <td style='text-align:left;'><?php echo $order['user_first_name'].' '.$order['user_last_name'] ?></td>
                <td style='text-align:left;'><?php echo $order['user_email'] ?></td>
                <td style='text-align:left;'><?php echo $order['delivery_address'] ?></td>
                <td style='text-align:center;'><?php echo ClientOrder::$status[$order['order_status']] ?></td>
                <td style="text-align:center"><a href="<?php echo url_for('@product_order_list?order_id='.$order['order_id']) ?>">Xem</a></td>
                <td style="text-align:center"><?php echo ClientOrder::$payment_method[$order['payment_method']] ?></td>
                <td><?php echo $order['created_at']?></td>
                <td style="text-align:center"><a href="<?php echo url_for('@order_place?order_id='.$order['order_id']) ?>">Đặt mua</a></td>
            </tr>
        <?php endforeach ?>
        </tbody>
    </table>
</div>